package com.guimin.demo.dto;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.*;
import java.math.BigDecimal;
/**
 * 修改社区服务
 * @author Administrator
 */
@Accessors(chain = true)
@Data
public class UpdateCommunityServiceDto {
    @NotNull(message = "id不能为空")
    private Integer id;
    @NotBlank()
    @Size(min = 1,max = 20)
    private String name;
    /**参考单价*/
    @NotNull(message = "参数price不能为空")
    @Digits(integer = 9,fraction = 2,message = "分账金额格式错误")
    @DecimalMin(value = "0.00",message = "分账金额不能小于0")
    private BigDecimal price;
}
